package com.mall.seckill.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Darren
 * @since 2022-09-28
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("seckill_activity")
@ApiModel(value="SeckillActivity对象", description="")
public class SeckillActivity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     * 活动名字
     */
    @ApiModelProperty(value = "活动名字")
    @TableField("activity_name")
    private String activityName;

    /**
     * 活动分类 0shop秒杀、1每日特价、2大牌闪购、3品类秒杀、4节日活动
     */
    @ApiModelProperty(value = "活动分类 0shop秒杀、1每日特价、2大牌闪购、3品类秒杀、4节日活动")
    @TableField("type")
    private Integer type;

    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    @TableField("start_time")
    private Date startTime;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    @TableField("end_time")
    private Date endTime;


}
